package com.project.bean;

import java.time.LocalDate;
import java.util.List;

/**
 * 员工实体
 */
public class EmployeeBean {
    /**员工id*/
    private int employeeId;
    /**员工姓名*/
    private String employeeName;
    /**生日*/
    private LocalDate birthday;
    /**入职时间*/
    private LocalDate inductionDate = LocalDate.now();
    /**专长*/
    private String specialty;
    /**状态*/
    private String state = "在职";
    /**工资*/
    private int money;
    /**电话*/
    private String phone;
    /**员工头像*/
    private String image;
    /**项目集合*/
    private List<ProgressBean> projectList;

    public EmployeeBean(String employeeName, LocalDate birthday, String specialty,
                        int money, String phone, String image) {
        this.employeeName = employeeName;
        this.birthday = birthday;
        this.specialty = specialty;
        this.money = money;
        this.phone = phone;
        this.image = image;
    }

    public EmployeeBean() {
    }

    public int getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(int employeeId) {
        this.employeeId = employeeId;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public LocalDate getInductionDate() {
        return inductionDate;
    }

    public void setInductionDate(LocalDate inductionDate) {
        this.inductionDate = inductionDate;
    }

    public String getSpecialty() {
        return specialty;
    }

    public void setSpecialty(String specialty) {
        this.specialty = specialty;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public List<ProgressBean> getProjectList() {
        return projectList;
    }

    public void setProjectList(List<ProgressBean> projectList) {
        this.projectList = projectList;
    }

    @Override
    public String toString() {
        return "EmployeeBean{" +
                "employeeId=" + employeeId +
                ", employeeName='" + employeeName + '\'' +
                ", birthday=" + birthday +
                ", inductionDate=" + inductionDate +
                ", specialty='" + specialty + '\'' +
                ", state='" + state + '\'' +
                ", money=" + money +
                ", phone='" + phone + '\'' +
                ", image='" + image + '\'' +
                ", projectList=" + projectList +
                '}';
    }
}
